package com.learn.designPatterns.behavioral.observer;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-10-21 14:22
 */
public class StatisticsDisplay implements Observer{

    public StatisticsDisplay(Subject subject) {
        subject.resisterObserver(this);
    }

    @Override
    public void update(float temperature, float humidity, float pressure) {
        System.out.println("StatisticsDisplay.update: " + temperature + " " + humidity + " " + pressure);
    }
}
